<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>

<script>
    window.onresize = function () {
        console.log(1);
    }
</script>
</body>
</html>